/* 学术论文风格CSS */
.paper-container {
    font-family: 'Noto Sans SC', 'Source Han Sans CN', 'Microsoft YaHei', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    line-height: 1.6;
}

.paper-title {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eaeaea;
}

.paper-title h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #153e75;
    margin-bottom: 0.5rem;
}

.paper-title h2 {
    font-size: 1.4rem;
    font-weight: 400;
    color: #666;
}

.paper-toc {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    border-left: 4px solid #3182ce;
}

.paper-toc h3 {
    margin-top: 0;
    color: #2c5282;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.paper-toc ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.paper-toc li {
    margin-bottom: 0.5rem;
}

.paper-toc a {
    color: #2b6cb0;
    text-decoration: none;
}

.paper-toc a:hover {
    text-decoration: underline;
}

.paper-section {
    margin-bottom: 2.5rem;
}

.paper-section h3 {
    color: #1a365d;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ebf4ff;
}

.paper-section h4 {
    color: #2c5282;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.paper-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

.paper-figure {
    margin: 2rem 0;
    text-align: center;
}

.paper-figure img {
    max-width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.paper-figure figcaption {
    margin-top: 0.75rem;
    font-style: italic;
    color: #4a5568;
    font-size: 0.95rem;
}

.paper-abstract {
    font-style: italic;
    padding: 1.5rem;
    background-color: #f8f9fc;
    border-radius: 6px;
    margin-bottom: 2rem;
    border-left: 4px solid #4299e1;
}

.paper-abstract h3 {
    border-bottom: none;
    color: #2c5282;
    margin-bottom: 0.75rem;
}

.paper-references {
    padding-left: 1.5rem;
}

.paper-references li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.paper-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.paper-section table th,
.paper-section table td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: left;
}

.paper-section table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.paper-section table tr:nth-child(even) {
    background-color: #f8fafc;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn-primary {
    color: #fff;
    background-color: #3182ce;
    border-color: #3182ce;
}

.btn-primary:hover {
    background-color: #2b6cb0;
    border-color: #2b6cb0;
}

.btn-secondary {
    color: #fff;
    background-color: #4a5568;
    border-color: #4a5568;
}

.btn-secondary:hover {
    background-color: #2d3748;
    border-color: #2d3748;
}

.btn-accent {
    color: #fff;
    background-color: #805ad5;
    border-color: #805ad5;
}

.btn-accent:hover {
    background-color: #6b46c1;
    border-color: #6b46c1;
}

/* 论文双栏布局 */
.paper-layout {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.col-sidebar {
    width: 200px;
    min-width: 200px;
    margin-left: 0;
    padding-left: 0;
}

.col-main {
    flex: 1;
    max-width: calc(100% - 220px);
}

.toc {
    position: sticky;
    top: 80px;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0;
    width: 100%;
    border-left: 3px solid #3182ce;
}

.toc h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #1a365d;
    font-weight: 600;
}

.toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    text-decoration: none;
    color: #2c5282;
    display: block;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.toc-list a:hover {
    background-color: #ebf8ff;
    color: #2b6cb0;
}

.toc-list .level-2 {
    padding-left: 0.75rem;
    font-size: 0.85rem;
    color: #4a5568;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .paper-container {
        padding: 1.5rem;
    }
    
    .paper-title h1 {
        font-size: 1.8rem;
    }
    
    .paper-title h2 {
        font-size: 1.2rem;
    }
    
    .paper-section h3 {
        font-size: 1.4rem;
    }
    
    .paper-section h4 {
        font-size: 1.2rem;
    }
    
    .paper-layout {
        flex-direction: column;
    }
    
    .col-sidebar {
        width: 100%;
        min-width: 100%;
    }
    
    .col-main {
        max-width: 100%;
    }
    
    .toc {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
} 